package com.lingx.web.api.impl;

import java.util.Map;

import org.springframework.stereotype.Component;

import com.lingx.web.api.IApi;
import com.lingx.web.local.Server;
@Component
public class Api9032 extends AbstractDevApi implements IApi{
	@Override
	public int getApiCode() {
		return 9032;
	}
	@Override
	public String getApiName() {
		return "运行状态";
	}
	@Override
	public Map<String, Object> api(Map<String, Object> params) {
		Map<String,Object> ret=IApi.getRetMap(1, "操作成功");
		try {
			Server server=new Server();
			server.copyTo();
			ret.put("data", server);
		}catch(Exception e) {
			ret.put("code", -1);
			ret.put("message", e.getMessage());
		}
		
		return ret;
	}
	public boolean isLog() {
		return false;
	}
}
